<#import "/spring.ftl" as spring/>
<#import "/common/base.ftl" as base/>
<@base.page '财务采购退货明细'>
<div class="row">
    <div class="col-lg-12">
        <div class="ibox float-e-margins">
          	<div class="filterItems">
				    <form class="form-inline" onsubmit="return false;">
				    
				      <div class="form-group">
				        <label for="supplierName">供应商名称:</label>
				        <label id="supplierName" ></label>
				        <input type="hidden" class="supplierId" value=>
				      </div>
				      <br><br>
				      
				      <label for="purchaseNo">仓库:</label>
				      <select class="form-control warehouseSelect">
				      <option value=-1>请选择仓库</option>
				      <#list warehouses as n>
			        		<option class="warehouse" value=${n.id}>${n.name}</option>
			          </#list>
				      </select>
				      
				       <label for="purchaseNo">结算方式:</label>
				        <select class="form-control payType">
				       <#list settlementMap?keys as key>
			        		<option class="warehouse" value=${key}>${settlementMap[key]}</option>
			          </#list>
				      </select>
				      
				      <div class="form-group">
				        <label for="prepayAmount">预付款:</label>
				        <input type="text" class="form-control round-border prepayAmount" placeholder="">
				      </div>
				      
				      <div class="form-group">
				        <label for="discountAmount">折扣额:</label>
				        <input type="text" class="form-control round-border discountAmount"   placeholder="">
				      </div>
				      
				       <div class="form-group">
				        <label for="amount">采购总金额:</label>
				        <input type="text" class="form-control round-border amount" placeholder="">
				      </div>
				      
				      
				      <br><br>
				      
				       <div class="form-group">
				        <label for="purchaseDate">采购日期:</label>
				        <input type="text" class="form-control datepicker purchaseDate">
				      </div>
				      
				      <div class="form-group">
				        <label for="planDate">预估到货日期:</label>
				        <input type="text" class="form-control datepicker planDate">
				      </div>
				      
				      
				      <div class="form-group">
				        <label for="address">送货地址:</label>
				        <input type="text" class="form-control round-border" id="address" placeholder="">
				      </div>
				      
				     <div class="form-group">
				        <label for="demo">备注:&nbsp;&nbsp;&nbsp;</label>
				        <input type="text" class="form-control round-border" id="demo" placeholder="">
				      </div>
				      <br><br>
				      <button type="" class="btn btn-info chooseRelative" >选择所有关联商品</button>
				      
				      <#--button type="" class="btn btn-default  clearTable">清空列表</button-->
				      
				      <button type="" class="btn btn-danger clearRelative ">不选择关联商品</button>
				      
				    </form>
          	</div>
           <br>
            <div class="ibox-content">
                <div id="DataTables_Table_0_wrapper" class="dataTables_wrapper form-inline" role="grid">
                    <table id="supplierGoods" class=" table table-striped table-bordered table-hover dataTable" cellspacing="0" width="100%">
				        <thead>
				            <tr>
				                <th>货号</th>
				                <th>条码</th>
				                <th>商品名称</th>
				                <th>未到货数量</th>
				                <th>可用量</th>
				                <th>周均销量</th>
				                <th>销售价</th>
				                <th>最近采购价</th>
				                <th>采购价</th>
				                <th>折扣率(%)</th>
				                <th>税率</th>
				                <th>箱规</th>
				                <th>订购数量</th>
				                <th>金额小计</th>
				                <th>goodsId</th>
				                <th>goodsSpecId</th>
				            </tr>
				        </thead>
				    </table>
				    <button type="" class="btn btn-info  pull-left" data-toggle="modal" data-target="#myModal">新增</button>
                    <button type="" class="btn btn-primary pull-right submitOrder">保存</button>
                </div>
               		 
            </div>
        </div>
    </div>
</div>

<script src="<@spring.url '/assets/js/purchase/purchaseOrderView.js' />"></script>
</@base.page>